package com.javashizhan.demo.mybatis.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.javashizhan.demo.mybatis.domain.Address;
import com.javashizhan.demo.mybatis.domain.User;

@Mapper
public interface UserDAO {

	User findUserByName(@Param(value = "name") String name) throws Exception;

	void createUser(@Param(value = "user") User user) throws Exception;

	int deleteUserByName(@Param(value = "name") String name) throws Exception;

	void createAddress(@Param(value = "address") Address address) throws Exception;
}
